from base_driver.basedriver_util import BaseDriverUtil


class LoginPage(BaseDriverUtil):
    username_path = ("xpath", '//input[@placeholder="手机号/用户名/邮箱"]')
    password_path = ("xpath", '//input[@placeholder="密码"]')

    def login(self, username, password):
        self.my_input(self.username_path, username)
        self.my_input(self.password_path, password)
        self.my_screenshot("login_info.png")